#ifndef COOLPOOL_SIMULATION_SIMOBJECTS_RECTANGLERENDERABLE_H_
#define COOLPOOL_SIMULATION_SIMOBJECTS_RECTANGLERENDERABLE_H_

#include <GL/freeglut.h>
#include <Vector3D.h>

#include "IRenderable.h"

namespace coolpool
{
	// Renderable object for rectangle entities.
	class RectangleRenderable : public IRenderable
	{
	public:

		RectangleRenderable(const math_tools::Vector3D & v1, const math_tools::Vector3D & v2, const math_tools::Vector3D & v3,const math_tools::Vector3D & v4, GLuint texture);

		virtual ~RectangleRenderable();

		virtual void render() const;

	private:

		GLuint texture_;
		math_tools::Vector3D v1_;
		math_tools::Vector3D v2_;
		math_tools::Vector3D v3_;
		math_tools::Vector3D v4_;
	};
}

#endif
